home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor1 / qrad.doc < prev    next >
Text File  |  1995-03-31  |  2KB  |  48 lines

  1. (User.programs) Option:  
  2. Item: 113 by _sirmax at hpcvbbs.UUCP 
  3. Author: [Jeff Maxwell] 
  4.   Subj: Radical/Fraction program 
  5.   Keyw: radical fractions program 
  6.   Date: Mon Sep 24 1990 19:26  
  7. ---------- 
  8.   Resp: 2 of 3 by _michaelowry at hpcvbbs.UUCP 
  9. Author: [Michael Andrew Lowry] 
  10.   Date: Fri Sep 28 1990 20:04  
  11.  
  12. Hi, I am a friend of Jeff, and I have recently risen to the challenge of 
  13. writing such a program. I TRIED to use s method similar to your's, but I 
  14. ran into so many problems that I started loosing sleep; I then quickly 
  15. wrote a rougher program that will do just about the same thing (it can't 
  16. find fractions inside the radical) I simply used nested FOR statements to 
  17. generate succesive fractions, took them out of the original # one by one, 
  18. until the result squared yeilded an integer. I have another program that 
  19. will simplify a radical expression (the expression, however has to be 
  20. stored interms of different variables representing distinct parts of the 
  21. expression- I don't want to bother with dissassembling an algebraic using 
  22. POS and SUB!!) Well, I am intrigued by your idea- I'll attempt to design 
  23. a working algorithm. I have a MATCH program that will expand a binomial 
  24. in the form (A+B)^N  It will be attached to another msg. Happy 
  25. programming. Oh, by the way, I'm just 18 - do you know many people my age 
  26. that are into this kind of stuff?  
  27.                                     - Michael Lowry 
  28.  
  29. ---------- 
  30.   Resp: 3 of 3 by _dsl at hpcvbbs.UUCP 
  31. Author: [David Lowenstein] 
  32.   Date: Wed Oct 17 1990 22:26  
  33.  
  34. [Note: Also see FRAD2, someone else's approach to this.  -jkh-] 
  35.  
  36.    Here's a program that works using the method described above. It calls on 
  37. 'PF', my own prime factor program, and 'FS', which is useless for anything 
  38. else. 'OQF' will do what you ask and 'QF' will do the same except with an 
  39. integer in the radical, but the expression will be equivalent. 'MN' only 
  40. returns a simple mixed number. I'm working on a smaller, faster version, so let 
  41. me know if this is on the right track. 
  42.  
  43. qrad (1641 bytes) 
  44. [converts a decimal to A/B*SQR(C/D)] 
  45.  
  46. [Note: David's PF is very slow for big numbers.  See the PF in the PRIME 
  47. directory on disk for a much faster factorizer.  -jkh-] 
  48.